using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MMM.Core.Domain;
using ServiceStack.ServiceHost;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;


namespace MMM.Services.Type
{
    [Serializable]
    [Route("/api/addressinfo", "POST,PUT")]
    public class AddressInfo : EntityBase<AddressInfo>
    {
        /// <summary>
        /// 地址类型
        /// </summary>
        [StringLength(50)]
        [Required]
        public String AddressType { get; set; }
        /// <summary>
        /// 国家
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Nation { get; set; }
        /// <summary>
        /// 省份
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Province { get; set; }
        /// <summary>
        /// 市
        /// </summary>
        [StringLength(50)]
        [Required]
        public String City { get; set; }
        /// <summary>
        /// 区县
        /// </summary>
        [StringLength(50)]
        [Required]
        public String County { get; set; }
        /// <summary>
        /// 街道
        /// </summary>
        [StringLength(50)]
        [Required]
        public String Street { get; set; }
        /// <summary>
        /// 其他
        /// </summary>
        [StringLength(50)]
        public String Other { get; set; }
        /// <summary>
        /// 邮政编码
        /// </summary>
        [StringLength(50)]
        public String PostalCode { get; set; }
        /// <summary>
        /// 客户Id
        /// </summary>      
        public Guid? CustomerId { get; set; }
        /// <summary>
        /// 客户名称
        /// </summary>
        [StringLength(50)]
        public String CustomerName { get; set; }
        /// <summary>
        /// 员工Id
        /// </summary>      
        public Guid EmpId { get; set; }
        /// <summary>
        /// 员工姓名
        /// </summary>
        [StringLength(50)]
        [Required]
        public String EmpName { get; set; }
        /// <summary>
        /// 地址类别：1为公司，2为个人
        /// </summary>
        public int AddressCategory { get; set; }

    }
}
